package cn.com.cifi.mars.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 审批单
 * @author Administrator
 *
 */
@Data
@TableName("t_approval_bill")
public class ApprovalBill implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "流程实例ID")
    private String instanceId;

    @ApiModelProperty(value = "重新发起跳转时要传递的任务id")
    private String taskId;

    @ApiModelProperty(value = "流程模板id")
    private String flowKey;

    @ApiModelProperty(value = "标题")
    private String subject;

    @ApiModelProperty(value = "审批业务类型(1.货值，2.供货)")
    private String businessType;

    @ApiModelProperty(value = "项目id")
    private String projectId;

    @ApiModelProperty(value = "发起人的岗位编码")
    private String postCode;

    @ApiModelProperty(value = "发起人所属部门编码")
    private String orgCode;

    @ApiModelProperty(value = "审批要点说明")
    private String description;

    @ApiModelProperty(value = "发起人")
    private String usercn;

    @ApiModelProperty(value = "发起人账号")
    private String account;

    @ApiModelProperty(value = "发起时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "签约审批预览日期")
    private String previewDate;

    @TableField(exist = false)
    private JSONObject vars;
    
    @TableField(exist = false)
    private String superviseUrl;
}
